﻿using Microsoft.Office.Interop.Excel;
using Microsoft.Office.Tools.Excel;

namespace ExcelTools
{
  // ==================================================================================
  /// <summary>
  /// This type represents the Excel application.
  /// </summary>
  /// <remarks>
  /// This type is a wrapper class around the Application class in the Excel PIA.
  /// </remarks>
  // ==================================================================================
  public static class ExcelApplication
  {
    #region Private fields;

    private static Application _App;

    #endregion

    // --------------------------------------------------------------------------------
    /// <summary>
    /// Creates a wrapper for the Excel application.
    /// </summary>
    /// <param name="app">Excel PIA Application instance.</param>
    // --------------------------------------------------------------------------------
    public static void BindTo(Application app)
    {
      _App = app;
    }
  }
}
